<?php
/**
 * Klasse, die zusammengehörige Serien verbindet.
 * z.B. eGP und eGP2
 *
 * @author Timo
 */
class League
{
    private $id          = 0;
    private $series      = array();
    private $game        = 'None';
    private $numOfSeries = 0;
    
    public function SetNumOfSeries($num)
    {
        if(is_integer($num))
        {
            $this->numOfSeries = $num;
        }
        else
        {
            echo $num . ' is not an integer.';
        }
    }
    
    public function SetGame($game)
    {
        if(is_string($game))
        {
            $this->game = $game;
        }
        else
        {
            echo $game . ' is not an integer.';
        }
    }
    
    public function GetID()
    {
        return $this->id;
    }
    
    public function GetNumOfSeries()
    {
        return $this->numOfSeries;
    }
    
    public function GetGame()
    {
        return $this->game;
    }
}
?>
